<template>
  <div>
    <img :src="qrCodeImage" alt="QR Code">
  </div>
</template>

<script>
import axios from 'axios';

export default {
  data() {
    return {
      qrCodeImage: ''
    };
  },
  mounted() {
    axios.get('http://localhost:8080/Ssbcontroller8?text=Ssbkaoshi,World')
        .then(response => {
          this.qrCodeImage = 'data:image/png;base64,' + response.data;
        })
        .catch(error => {
          console.error(error);
        });
  }
};
</script>
